package com.inspinia.message.common.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 通知推送
 *
 * Created by veblen on 2018-1-8.
 */
public class NoticePush implements Serializable{
	/**
     * 主键
     */
	private Long id;
	/**
     * 通知id
     */
	private Long noticeId;
	/**
     * 收件人id
     */
	private Long addresseeId;
	/**
     * 推送状态
     */
	private NoticePushStatus status;
	/**
     * 通知发送时间
     */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
	private Date sendTime;
	/**
	 * 阅读时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
	private Date readTime;

	public NoticePush() {
	}

	public NoticePush(Long noticeId, Long addresseeId, NoticePushStatus status) {
		this.noticeId = noticeId;
		this.addresseeId = addresseeId;
		this.status = status;
	}

	public void setId(Long id){
		this.id = id;
	}

	public Long getId(){
		return this.id;
	}
	public void setNoticeId(Long noticeId){
		this.noticeId = noticeId;
	}

	public Long getNoticeId(){
		return this.noticeId;
	}
	public void setAddresseeId(Long addresseeId){
		this.addresseeId = addresseeId;
	}

	public Long getAddresseeId(){
		return this.addresseeId;
	}

	public NoticePushStatus getStatus() {
		return status;
	}

	public void setStatus(NoticePushStatus status) {
		this.status = status;
	}

	public void setSendTime(Date sendTime){
		this.sendTime = sendTime;
	}

	public Date getSendTime(){
		return this.sendTime;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}
}